package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SjRadomStandardMapper;
import com.ruoyi.system.domain.SjRadomStandard;
import com.ruoyi.system.service.ISjRadomStandardService;

/**
 * 随机标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
@Service
public class SjRadomStandardServiceImpl implements ISjRadomStandardService 
{
    @Autowired
    private SjRadomStandardMapper sjRadomStandardMapper;

    /**
     * 查询随机标准
     * 
     * @param id 随机标准主键
     * @return 随机标准
     */
    @Override
    public SjRadomStandard selectSjRadomStandardById(Long id)
    {
        return sjRadomStandardMapper.selectSjRadomStandardById(id);
    }

    /**
     * 查询随机标准列表
     * 
     * @param sjRadomStandard 随机标准
     * @return 随机标准
     */
    @Override
    public List<SjRadomStandard> selectSjRadomStandardList(SjRadomStandard sjRadomStandard)
    {
        return sjRadomStandardMapper.selectSjRadomStandardList(sjRadomStandard);
    }

    /**
     * 新增随机标准
     * 
     * @param sjRadomStandard 随机标准
     * @return 结果
     */
    @Override
    public int insertSjRadomStandard(SjRadomStandard sjRadomStandard)
    {
        return sjRadomStandardMapper.insertSjRadomStandard(sjRadomStandard);
    }

    /**
     * 修改随机标准
     * 
     * @param sjRadomStandard 随机标准
     * @return 结果
     */
    @Override
    public int updateSjRadomStandard(SjRadomStandard sjRadomStandard)
    {
        return sjRadomStandardMapper.updateSjRadomStandard(sjRadomStandard);
    }

    /**
     * 批量删除随机标准
     * 
     * @param ids 需要删除的随机标准主键
     * @return 结果
     */
    @Override
    public int deleteSjRadomStandardByIds(Long[] ids)
    {
        return sjRadomStandardMapper.deleteSjRadomStandardByIds(ids);
    }

    /**
     * 删除随机标准信息
     * 
     * @param id 随机标准主键
     * @return 结果
     */
    @Override
    public int deleteSjRadomStandardById(Long id)
    {
        return sjRadomStandardMapper.deleteSjRadomStandardById(id);
    }
}
